Arduino Reed Switch Pulse Counter, 5 which is perfect.