<human>:  Can you show me a Python function to get number of nonzero values in array.
<bot>:)

# Calling the function
print((nonzero_values(array)))

#Example Output

# 5

#Remember to inspect code for bugs.