def modifiedaminoacids(df):
    """
    Calculate the number of modified amino acids in supplied ``DataFrame``.

    Returns the total of all modifications and the total for each amino acid individually, as an ``int`` and a
    ``dict`` of ``int``, keyed by amino acid, respectively.

    :param df: Pandas ``DataFrame`` containing processed data.
    :return: total_aas ``int`` the total number of all modified amino acids
             quants ``dict`` of ``int`` keyed by amino acid, giving individual counts for each aa.
    """
    amino_acids = list(df['Amino acid'].values)
    aas = set(amino_acids)
    quants = {}
    for aa in aas:
        quants[aa] = amino_acids.count(aa)
    total_aas = len(amino_acids)
    return total_aas, quants
