def count_blocks(documents):
    """
    Counts the total number of blocks in a list of documents
    Args:
        documents(metadata.MetaDocument): The list of documents
    Returns:
        int: Size of the list
    """
    return sum([len(doc.blocks) for doc in documents])