presto-orc/src/main/java/io/prestosql/orc/writer/DictionaryBuilder.java/DictionaryBuilder/getEntryCount
class DictionaryBuilder:    public int getEntryCount()
    {
        return elementBlock.getPositionCount();
    }