# q11 - DEBUG function numOdds(intList) #
# - This function currently returns INCORRECT answers
# - Find and fix the error(s) in the function below
# - the program accepts a list of arbitrary numbers as parameter:
# --- intList - a list of integers
# - numOdds should iterate over the numbers in the intList and count
# how many of the integers are odd, then return this count
# - Example:
# intList = [1,1,4,66,-13,0,22,51]
# return 4
# - RESTRICTIONS: do NOT re-write the function, just find/fix error(s)
# params: list (of integers)
# return: integer
def numOdds(intList):
'''accept a list of integers; count how many are odd; return that value'''
count = 0
for i in intList:
if i % 2 != 0:
count += 1
return count