Use group_id if present when getting user thread and comment counts.

TNL-543

@jimabramson @dan-f Please review
i think using http://ruby-doc.org/core-1.9.3/Enumerable.html#method-i-count in one step would be more straightforward here, if it works.