count number of even and odd numbers in array