def collect_consecutive_values(seq):
    """Given a sequence of values, output a list of pairs (v, n) where v is a
    value and n is the number of consecutive repetitions of that value.

    Example:
        >>> collect_consecutive_values([53, 92, 92, 92, 96, 96, 92])
        [(53,1), (92,3), (96,2), (92,1)]
    """

    pairs = []
    sq = list(seq)
    while len(sq) > 0:
        val = sq[0]
        xs = [x == val for x in sq]
        if all(xs):
            count = len(xs)
        else:
            count = xs.index(False)
        pairs.append((val, count))
        sq = sq[count:]

    return pairs