Adds a comment explaining the addition of 'type' condition in the counts query