A former Catholic school teacher and basketball coach has been accused of having sexual contact with a 16-year-old student dozens of times over a one-month period, according to a criminal complaint.

Megan Mahoney, 24, is charged with 30 counts of statutory rape, four counts of engaging in a criminal sexual and one count of endangering the welfare of a child after she allegedly had an inappropriate relationship with a male student between Oct. 31, 2013 and Jan. 9.

The student, now 17, told prosecutors that he and Mahoney had some sort of sexual contact roughly twice a week over that period, according to the complaint.

The Staten Island Advance reports that Mahoney was a gym teacher and assistant basketball coach at Moore Catholic High School in Graniteville. She resigned from the school in January.

She was arrested over the weekend and released, the Advance reports. Her attorney declined comment.

The school and Archdiocese of New York both told the newspaper it was cooperating with investigators.