in reply to Please provide a hint for me to continue with the rest of my program
Your plan for counting domains will work, but it has some extra steps. It could be simpler than you have it. There's a way to make the count without creating an array for the domains. Hope that's enough of a hint, without being too obvious!