deeplearning4j-scaleout/deeplearning4j-nlp/src/main/java/org/deeplearning4j/models/embeddings/inmemory/JointStorage.java
/**
     * Returns number of words in all underlying vocabularies
     *
     * @return
     */
Returns number of words in all underlying vocabularies
@return
Returns number of words in all underlying vocabularies @return
@Override
    public int numWords() {
        AtomicLong counter = new AtomicLong(0);
        for (VocabCache cache: mapVocabs.values()) {
            counter.addAndGet(cache.numWords());
        }
        return counter.intValue();
    }
@ Override public int numWords ( ) { AtomicLong counter = new AtomicLong ( 0 ) ; for ( VocabCache cache : mapVocabs . values ( ) ) { counter . addAndGet ( cache . numWords ( ) ) ; } return counter . intValue ( ) ; }
Returns number of words in all underlying vocabularies
 @return
Returns number of words in all underlying vocabularies @return
// TODO: this should return Long in future, since joint storage mechanics should allow really huge vocabularies and maps