def parse_modified(full_dict, ignored_keys=('#', '?')):
    """
    Extract 'staged' and 'modified' counts from Git status lines.

    Arguments
    ---------
    full_dict: dict
        full meta data dictionary
    ignored_keys: iterable
        keys that should not contribute towards the staged and modified counts
        (e.g., branch meta data or untracked files)

    Returns
    -------
    list
        a list of two counts: [num_staged, num_modified]
    """
    counts = [0, 0]
    for k in full_dict:
        if k not in ignored_keys:
            values = [x.split()[1].index('.') for x in full_dict[k]]
            for v in values:
                counts[v] += 1
    return counts