def row_count(df):
    """Count number of total and unique rows.

    Parameters
    ----------
    df : pd.DataFrame
        A DataFrame.

    Returns
    -------
    dict
        Dictionary with `total` and `unique` keys.
    """
    report = {}
    report["total"] = len(df.index)
    report["unique"] = len(df.drop_duplicates().index)
    return report