Added specification/predicate to the GroupCounts and GroupItems