code: public static int shownToastCount() {
      ShadowApplication shadowApplication = Shadow.extract(RuntimeEnvironment.application);
      return shadowApplication.getShownToasts().size();
    }
docs: Returns the number of {@code Toast} requests that have been made during this test run
  or since {@link #reset()} has been called.
  
  @return the number of {@code Toast} requests that have been made during this test run
  or since {@link #reset()} has been called.