Concept Flow - np.count_nonzero() for counting
Input: numpy array
Apply np.count_nonzero()
Check each element: non-zero?
Count all True (non-zero) elements
Return count as integer
The function takes a numpy array, checks each element if it is non-zero, counts all such elements, and returns the total count.