First of all, the query you posted is not correct. The CTE selects two columns, but there is no FROM clause. It seems that in your ambition to mask the table and column names, you managed to distort the query.
I can make the guess that the command in the CTE is supposed to be FROM, and in that case, the simple answer would be: Save the count in a variable and skip the CTE.
If that was not the correct answer, post your actual query without modification. Alternatively, copy the database, rename table and colunm names and run the altered query to make sure that it has the behaviour you describe.