Python Count Values In List With Condition Meaning