I\'m trying to create a function that counts the number of times a pump its turned on. The on/off switches are represented by 1/0 and I whish to count every time the array g