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