On average, people pass gas about 10-20 times per day. It is possible you are not farting more than usual; you’re just noticing it in class because it’s embarrassing. You can try releasing gas before class (outside or in a bathroom is less noticeable). You might also track what you eat and see if particular foods should be avoided. If you are experiencing other health issues such as diarrhea, constipation, weight loss, etc., see a doctor to make sure your gas is not a symptom of a larger issue.