Given a list of integers nums, write a function to count the number of even and odd integers in the list. Return the counts as a tuple (even_count, odd_count).
Example 1:
Input: nums = [1, 2, 3, 4, 5]
Output: (2, 3)
Explanation: There are 2 even numbers (2, 4) and 3 odd numbers (1, 3, 5).
Example 2:
Input: nums = [0, -1, -2, -3, -4]
Output: (3, 2)
Explanation: There are 3 even numbers (0, -2, -4) and 2 odd numbers (-1, -3).
0 <= nums.length <= 10^4-10^9 <= nums[i] <= 10^9