Your table is not normalized and this is making your life difficult. When you have a one to many relationship like event:files, you need 2 tables, one for events and one for files belonging to events. Like this:
events
event_id int unsigned not null auto_increment
event_name varchar(45)
....
eventfiles
file_id int unsigned not null auto_increment
event_id int unsigned not null,
file_name varchar(45)
....
To get the total number of files, just do:
SELECT COUNT(*) FROM eventfiles;
If you want to get the number of files per event, do this:
SELECT e.event_name, COUNT(f.file_id)
FROM events e LEFT JOIN eventfiles f ON e.event_id=f.event_id
GROUP BY e.event_name;