Simplify counting