Human: Write me a Python function to determine number of bins in a histogram. Assistant: 
Here is a Python function to determine number of bins in a histogram

import numpy as np

def number_of_bins(data):
        """Returns the number of bins in a histogram."""
        return len(data)

# Enter the list
list1 = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]

# Calling the function
print((number_of_bins(list1)))

#Example Output
# 10

#Remember to inspect code for bugs.