Tell me about your experience writing basic Python code and running SQL queries.
Demonstrate the coding portion by implementing count_even_numbers(nums). Given an array of integers, return the number of values divisible by 2.
Examples: [1, 2, 4, 7] returns 2; [-3, -2, 0] returns 2.
Constraints: The array may be empty, contain up to 10^4 integers, and values range from -10^9 to 10^9.
def count_even_numbers(nums):