typecast count-queries to integer