def count_feature_types(data):
    
    """
    Get the dtype counts for a dataframe's columns. 
    """
    
    df_feature_type = data.dtypes.sort_values().to_frame('feature_type')\
    .groupby(by='feature_type').size().to_frame('count').reset_index()
    
    return df_feature_type