so it depends on if the noun is female or male or a thing , ? like with on ona one ?
No, it depends on whether the noun is male humans or other than that. It is commonly said
Ilu przyjdzie gości?, but I'm sure people will also use
Ile przyjdzie gości? here as well. The former is better, I believe, as the noun describes male humans, technically speaking, and there is no feminine counterpart of it (in common speech one may sometimes hear the feminine term
gościówa, but it denotes "a woman" rather than "a female guest") . Likewise, if you wanted to ask:
How many doctors will be present at the conference?, you would say:
Ilu lekarzy będzie na konferencji? knowing well in advance that there will be both male and female doctors among them. But again, people may also say;
Ile lekarzy będzie na konferencji?, but I truly don't know if the latter is considered correct or not by the linguists. Anyway, the former sounds to me much more typical and much more elegant.
----------------------------------------------------
Ile kobiet jest w haremie wezyra? (feminine animate noun, personal)
Ile gęsi jest w gospodarstwie? (feminine animate noun, non-personal)
Ile słoni jest w zoo? (masculine animate noun)
Ile okien jest w tym domu? (neutral inanimate noun)
Ile książek jest w księgozbiorze? (feminine inanimate noun)
Ile sklepów jest na twojej ulicy? (masculine inanimate noun)
As you can see, the exceptional
ilu? is applied only to nouns that denote male humans (or nouns used to denote them in the past).