How can one count sine wave peaks?
You can't count peaks directly, but you can count zero-crossings - there's example code in the arduino library for this.