def count_numeric(df):
    """
    Returns the number of numeric variables in the dataset.
        Parameters:
            df (pandas DataFrame): Dataset to perform calculation on
        Returns:
            counter_numeric (int): Number of numeric variables in df
    """
    counter_numeric = 0
    for i in range(len(df.columns)):
        col = df.iloc[:, i]
        if col.dtype.name == 'int64' or col.dtype.name == 'float64':
            counter_numeric += 1
    return counter_numeric