from typing import List


def count_jobpairs(buildpairs: List) -> int:
    """
    :param buildpairs: A list of build pairs.
    :return: The number of job pairs in `buildpairs`.
    """
    counts = [len(bp['jobpairs']) for bp in buildpairs]
    return sum(counts)