WiktionaryResource extends AbstractResource { public int getNumberOfEntities() throws LexicalSemanticResourceException { int i=0; Iterator<WordEntry> wordEntryIter = wkt.wordEntryIterator(); while (wordEntryIter.hasNext()) { wordEntryIter.next(); i++; } return i; } WiktionaryResource(
    		Language language,
    		String wiktionaryDirectory); @Override void setIsCaseSensitive(boolean isCaseSensitive); @Override boolean getIsCaseSensitive(); boolean containsLexeme(String lexeme); boolean containsEntity(Entity entity); Set<Entity> getEntity(String lexeme); Set<Entity> getEntity(String lexeme, PoS pos); Set<Entity> getEntity(String lexeme, PoS pos, String sense); Set<Entity> getParents(Entity entity); Set<Entity> getChildren(Entity entity); int getNumberOfEntities(); Iterable<Entity> getEntities(); @Override Set<Entity> getNeighbors(Entity entity); String getResourceName(); String getResourceVersion(); int getShortestPathLength(Entity firstEntity, Entity secondEntity); String getGloss(Entity entity); Set<Entity> getRelatedEntities(Entity entity, SemanticRelation semanticRelation); Set<String> getRelatedLexemes(String lexeme, PoS pos, String sense, LexicalRelation lexicalRelation); @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 Exception { wiktionaryGerman.setIsCaseSensitive(false); assertEquals(88436, wiktionaryGerman.getNumberOfEntities()); wiktionaryGerman.setIsCaseSensitive(true); assertEquals(88436, wiktionaryGerman.getNumberOfEntities()); }