A 7-year-old boy in India complaining of jaw pain had 526 teeth removed from his mouth.

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, according to CNN.

Doctors took some X-rays and CT scans and that’s when they found all the teeth.

They were in a bag-like tissue and it took doctors nearly two hours to take it out and then another five hours to take all the teeth out.

The teeth were as small as 0.1 millimeters (.004 inches) to 15 millimeters (0.6 inches). But even the smallest piece had a crown, root and enamel.

Doctors are a bit stumped how something like this could happen, but their best guess is either genetic or environmental.

The little boy was released from the hospital after three days and is expected to make a full recovery.

He is doing fine after the procedure.

In a similar case in 2014, 232 teeth were removed from the mouth of a teen in Mumbai.