<human>:  Write me a Python function for a number of non-nan rows in a row.
<bot>:})

# Calling the function
print((number_of_non_nan_rows(df)))

#Example Output
# a  5
# b  5
# dtype: int64

#Remember to inspect code for bugs.