basically you want to have one table...call it class_event
class_event
classID
eventID
You might have other tables, like class and/or event, but you'll mainly be interested in class_event for the queries you describe.
Each event you record causes an insert or update of the class_event table.
You'd report data out of this table by using the GROUP BY statement:
SELECT classID, count(eventID) FROM class_event
GROUP BY classID
would show howmany events for class a, for class b, etc.
OR
SELECT classID, count(eventID) FROM class_event
GROUP BY classID, eventID
would show how many event1s for class A, how many event 2s for class A, how many event 1s for class B, how many event 2s for class b, etc.
Look at the MySQL manual for GROUP BY functions