New Delhi (CNN) A 7-year-old boy complaining of jaw pain was found to have 526 teeth inside his mouth, according to the hospital in India where he was treated.

The boy was admitted last month in the southern city of Chennai because of swelling and pain near his molars in his lower right jaw.

When doctors scanned and x-rayed his mouth, they found a sac embedded in his lower jaw filled with "abnormal teeth," Dr. Prathiba Ramani, the head of Oral and Maxillofacial Pathology at Saveetha Dental College and Hospital, told CNN.

An x-ray of the boy's mouth shows the sac.

While the surgery to remove the teeth took place last month, doctors needed time to individually examine each tooth before they could confirm their findings.

After discovering the sac, two surgeons removed it from the boy's mouth. Then Ramani's team took four to five hours to empty the sac to confirm its contents and discovered the hundreds of teeth.

The 7-year-old was released three days after the surgery.

Read More