Automatic counter (Basic)