import itertools


def compress(string: str) -> str:
    """Return string represented as tuples of characters and their count."""
    return " ".join([
        "({})".format(", ".join((str(len(list(grp))), char)))
        for char, grp in itertools.groupby(string, lambda c: c)
    ])