GermaNetResource extends AbstractResource { public int getNumberOfEntities() throws LexicalSemanticResourceException { return gn.numSynsets(); } GermaNetResource(String path, boolean ignoreCase);  GermaNetResource(String path); boolean containsEntity(Entity entity); boolean containsLexeme(String lexeme); Set<Entity> getEntity(String lexeme); Set<Entity> getEntity(String lexeme, PoS pos); Set<Entity> getEntity(String lexeme, PoS pos, String sense); Set<Entity> getChildren(Entity entity); Iterable<Entity> getEntities(); int getNumberOfEntities(); Set<Entity> getParents(Entity entity); String getResourceName(); String getResourceVersion(); int getShortestPathLength(Entity firstEntity, Entity secondEntity); String getGloss(Entity entity); Set<String> getRelatedLexemes(String lexeme, PoS pos, String sense, LexicalRelation lexicalRelation); Set<Entity> getRelatedEntities(Entity entity, SemanticRelation semanticRelation); @Override Entity getRoot(); @Override Entity getRoot(PoS pos); @Override Entity getMostFrequentEntity(String lexeme); @Override Entity getMostFrequentEntity(String lexeme, PoS pos);  }
@Test public void testGetNumberOfEntities() throws LexicalSemanticResourceException { assertEquals(74612, germaNetCaseInsensitive.getNumberOfEntities()); assertEquals(74612, germaNet.getNumberOfEntities()); }