That's because "ile" requires Genitive. It's actually like "Ile dolarów masz?"
I apologize for asking this, but does the verb mieć take dopełniacz afterwards when it has "ile"??? I know for general case, mieć should take biernik: such as Mam kota(koty).
Yes, you're perfectly right.