For one, you have a curly brace instead of a parenthesis.

You're using the wrong syntax inside the if() statement, so it's joining the contents of the variable named %ageCount. with the contents of $nick, then comparing that string with 1.