Is it possible to count punches on a punching bag?

Is it possible to count punches on a punching bag?