Numpy Count Nonzero Values Of R