Limitation based on number of individuals
In the case of any foster home, difficulty of care payments for any period to which such payments relate shall not be excludable from gross income under subsection (a) to the extent such payments are made for more than—
(A)#
10 qualified foster individuals who have not attained age 19, and
(B)#
5 qualified foster individuals not described in subparagraph (A).