Broken as heck number maths my goodness [help]

Horncounter is a number that varies. Horncounter is 1

You start counting at 1. playing two notes would put it at 3. The code suggests you should start counting from 0…