What are the time and space complexities of your solution?
Analyze the provided single-pass solution that counts even integers in an array. State the asymptotic time and auxiliary space complexities in terms of n, the array length, and briefly justify both bounds.
Function contract: count_even(nums) accepts an integer array and returns the number of even values.
def count_even(nums):