countEvens: how many even numbers?
Return the number of even ints in the given array. Step through countEvens: the loop visits every box, and nums[i] % 2 is the remainder after dividing by 2 — it's 0 exactly when the number is even.
Return the number of even ints in the given array. Step through countEvens: the loop visits every box, and nums[i] % 2 is the remainder after dividing by 2 — it's 0 exactly when the number is even.