Algorithms for Deciding Counting Quantifiers over Unary Predicates