The itemCount works fine. The sitesCount just returns the same as itemCount, even though there usually maybe half the number of distinct site_ids for each particular result. Im sure Im just formatting it wrong but Im having trouble figuring out exactly how to format it.