Totaller/counter over the array

Level 7: Arrays. One pass, two patterns: add every slot, count the ones that match a condition.