Count star optimization and unlimited for aggregations