int CountForCategory( int categoryId, bool publicOnly, bool groupRestrictions )
Parameters
- categoryId
- Id of the category to count for
- publicOnly
- If true only public (published) items are included in the count
- groupRestrictions
- If true products assigned to groups that doesn't belong to user will not be counted.
Return Value
The number of catalog nodes in a category