Yeah I saw that later, it uses a regular expression /^count\(.*\)$/;