You are given an array of integers nums.
Your task is to count how many elements in nums are even.
You may assume that:
Return the count of even numbers in the array.
[1, 2, 3, 4, 5, 6]
3
The even numbers are 2, 4, and 6, so the count is 3.
[1, 3, 5, 7]
0
There are no even numbers in the array.
[2, 4, 6]
3
All elements are even, so the count is 3.
[1, 2, 3, 4, 5, 6]
3