presto-main/src/main/java/io/prestosql/operator/aggregation/CountAggregation.java/CountAggregation/removeInput
class CountAggregation:    @RemoveInputFunction
    public static void removeInput(@AggregationState LongState state)
    {
        state.setLong(state.getLong() - 1);
    }