Learn to count with cogwheels