I am trying to run the count function on an array within a for loop, specifically I am trying to find the no. of negative integers within an array. Here's the code I am using:

```
a = (-1, 1, 2, 6, -9, -20, 0, 0, 12, -7, 9, 8, 3, -16)
for i in a:
    print(a.count(i<0))

```

However, the result I get is:

```
1,2,2,2,1,1,2,2,2,1,2,2,2,1

```

I wanna know if there is a way to get the counter using the count function inside a for loop and if I am doing something wrong?

I am trying to count all the negative numbers in the array