Add Total of grouped items to AR query interface on guides

[ci skip]
Merge pull request #15459 from maurogeorge/add-total-grouped-items

Add Total of grouped items to Active Record query interface on guides [ci skip]