Count Number Of Elements In List Python With Condition