How to count the number of occurences of `None` in a list?,print(len([x for x in lst if x is not None]))