def count_files(local_folder, reporter):
    """
    Count all of the files in a local folder.

    :param b2sdk.sync.folder.AbstractFolder local_folder: a folder object.
    :param reporter: reporter object
    """
    for _ in local_folder.all_files(None):
        reporter.update_local(1)
    reporter.end_local()
