code: public static <T extends TOP> int count(final Class<T> type, final JCas aJCas)
      {
          return JCasUtil.select(aJCas, type).size();
      }
docs: Counts the number of features structures of the given type in the JCas
  
  @param type  the type
  @param aJCas the JCas
  @return the number of occurrences