def get_nmods(mod_seq, mod_str="Oxidation"):
    """
    Get the number of modifications.

    Args:
        mod_seq: str, modified sequence string
        mod_str: str, modification string to count

    Returns:
        int, number of mods seen in mod_seq
    """
    return mod_seq.count(mod_str)