added setPedalCount method