You are trying to set UserCount, a number, to the string "EXECUTE IMMEDIATE userCheckSql USING UserName", which will not convert to a number for obvious reasons