count()

Total number of Objs that have this value.

Copy
facets = Scrivito.getClass("BlogPost").where('tags', 'contains', 'design').facet('tags', { includeObjs: 5 });
totalObjs = facets[0].count();

Note that this refers to all CMS objects, not just the ones included in this search. Also note that the count is approximate.

Returns

Number

Example