Here is a tiny code to get started and see what is happening, you can expand this code easily but it is also nice to see how it works (:
Code:
on *:text:how old is dapper:#: {
  inc -s %ageCount 1
  if (%ageCount >= 3) {
    //echo -a !age $nick
  }
}

Like maroon said, put a //echo after a command to see what is going on in the script, e.g:
Code:
on *:text:how old is dapper:#: {
  //echo -a thisIsTriggerd
  inc -s %ageCount 1
  //echo -a thisIsTriggerdAlso
  if (%ageCount >= 3) {
   //echo -a thisIsTheLastTrigger EOF
  }
}

etc. etc.