What does the following loop do?

int[] a = {6, 1, 9, 5, 12, 3};
int len = a.length;
int x = 0;
for (int i = 0; i < len; i++)
if (a[i] % 2 == 0) x++;
System.out.println(x);


1. Sums the even elements in a.
2. Finds the largest value in a.
3. Counts the even elements in a.
4. Finds the smallest value in a