@Override
    public void addValue(Type type, Block block, int position)
    {
        if (!block.isNull(position)) {
            nonNullValueCount++;
        }
    }
@Test
    public void testAddValue()
    {
        CountStatisticsBuilder statisticsBuilder = new CountStatisticsBuilder();
        statisticsBuilder.addValue();
        statisticsBuilder.addValue();
        ColumnStatistics columnStatistics = statisticsBuilder.buildColumnStatistics();
        assertEquals(columnStatistics.getNumberOfValues(), 2);
    }