Fix the Starred Groups page in the Dashboard.
Fix the Starred Groups page in the Dashboard.

The Dashboard sidebar attempts to access the stored counts on the current
datagrid, but this wasn't available on the Starred Groups page. We now
have the counts calculations factored out into a common function that
both the main Dashboard and the Starred Groups datagrid can use.

Fixes bug #1539

chazy/reviewboard,atagar/ReviewBoard,chipx86/reviewboard,Khan/reviewboard,custode/reviewboard,1tush/reviewboard,brennie/reviewboard,1tush/reviewboard,atagar/ReviewBoard,atagar/ReviewBoard,chazy/reviewboard,davidt/reviewboard,1tush/reviewboard,reviewboard/reviewboard,beol/reviewboard,brennie/reviewboard,beol/reviewboard,bkochendorfer/reviewboard,chipx86/reviewboard,KnowNo/reviewboard,Khan/reviewboard,custode/reviewboard,1tush/reviewboard,chipx86/reviewboard,sgallagher/reviewboard,custode/reviewboard,reviewboard/reviewboard,brennie/reviewboard,chipx86/reviewboard,1tush/reviewboard,sgallagher/reviewboard,brennie/reviewboard,chazy/reviewboard,beol/reviewboard,custode/reviewboard,sgallagher/reviewboard,sgallagher/reviewboard,1tush/reviewboard,atagar/ReviewBoard,beol/reviewboard,Khan/reviewboard,chazy/reviewboard,chazy/reviewboard,davidt/reviewboard,chazy/reviewboard,KnowNo/reviewboard,atagar/ReviewBoard,bkochendorfer/reviewboard,reviewboard/reviewboard,Khan/reviewboard,Khan/reviewboard,bkochendorfer/reviewboard,davidt/reviewboard,chazy/reviewboard,chazy/reviewboard,reviewboard/reviewboard,1tush/reviewboard,1tush/reviewboard,bkochendorfer/reviewboard,Khan/reviewboard,davidt/reviewboard,1tush/reviewboard,KnowNo/reviewboard,Khan/reviewboard,chazy/reviewboard,atagar/ReviewBoard,KnowNo/reviewboard,Khan/reviewboard,Khan/reviewboard,atagar/ReviewBoard,atagar/ReviewBoard,atagar/ReviewBoard