```python
def pos_count(list):
    """
    Counts the number of positive numbers in a list.
    """
    return sum(1 for x in list if x > 0)

```