changed SQL query to count comments