Without seeing an actual error, my guess is that your problem is with using an unscoped variable name the same as a function. Instead of and putting that just after the argument tag. Then later in your code use the countNew variable.
One other thing...please, plesae, plesae use cfqueryparam in your queries when you are passing in variables. This protects you from sql injection attacks (and improves performance). For instance:
<CFQUERY NAME="NoCountCK" DATASOURCE="MyDSN">
SELECT *
FROM Ideas
WHERE IdeaID = <cfqueryparam value="#arguments.VoteNo#">
</CFQUERY>