Create a function in Python that takes a dataframe as a parameter and calculates the number of values for each column.
Not applicable
def countValues(dataframe):
 counts = {}
 for column in dataframe.columns:
 counts[column] = dataframe[column].count()
 return counts