You can use the sum() function as shown below to find the count of positive and negative numbers in an array.
>>> b=np.array([-1,0,2,3,-4,-5,7,8,-9])>>> (b>0).sum()4>>> (b<0).sum()4