Count Even Elements

Given an integer array arr. Write a function int CountEven(int[] arr) that counts the number of even values in the array.
Example 1
Input: arr = [2, 4, 6, 8]
Output: 4
Explanation: All numbers in the array are even
Example 2
Input: arr = [1, 2, 3, 4, 5]
Output: 2
Explanation: The array contains two even numbers: 2 and 4
Example 3
Input: arr = [1, 3, 5]
Output: 0
Explanation: There are no even numbers in the array
Line 1, Char 1