I agree with SummerSun. You could perhaps get away with "How many recipes are left him?" in spoken English, but it's grammatically incorrect because "him" is an indirect object here and needs a preposition (e.g. for or to). It's certainly poor style for Duolingo to use it as the "textbook" response, as it obscures that "lui" translates as "to/for him" in this context.