def METHOD_NAME(tmp_path, subjects, tasks, runs, sessions):
    """Test the event counts."""
    pytest.importorskip("pandas")
    root, events, event_id = _make_dataset(tmp_path, subjects, tasks, runs, sessions)
    counts = count_events(root)
    _check_counts(counts, events, event_id, subjects, tasks, runs, sessions)