counting positive elements in a list with python list comprehensions,sum(x > 0 for x in frequencies)