human
Write a python function that returns the number of integer elements in a given list. Here is a solution in Python:
assistant
#Here is the Python code you requested.
 def count_integer(list1):
    ctr = 0
    for i in list1:
        if isinstance(i, int):
            ctr = ctr + 1
    return ctr