DC motors with counter