Toddler getting xrays

I have a 21 month old toddler who’s had four x rays due to recurrent respiratory infection. Yes, I know that it’s important to get X-rays done to check for anything serious, but is it too dangerous to get them done often?

Is four X-rays a lot by the age of 21 months ? Has anyone else’s son or daughter has these many and turned out ok?