A gym charges $8.75 for each swimming class and a one time registration fee of $12.50. A student paid a total of $56.25. Write and solve an equation to find the number of swimming classes the student took.