Fixed counting exception

Fixed "Invalid parameter number: number of bound variables does not match number of tokens " exception during execution count on Query where select part of query contains :parameters.
This seems wrong: too many bound parameters and you are removing some? This may even introduce security issues...