added bpm counter