Debian Codegraph @

docs/content/en/methods/taxonomy/Count.md

raw
1 ---
2 title: Count
3 description: Returns the number of number of weighted pages to which the given term has been assigned.
4 categories: []
5 keywords: []
6 params:
7 functions_and_methods:
8 returnType: int
9 signatures: [TAXONOMY.Count TERM]
10 ---
11
12 The `Count` method on a `Taxonomy` object returns the number of number of [weighted pages](g) to which the given [term](g) has been assigned.
13
14 {{% include "/_common/methods/taxonomy/get-a-taxonomy-object.md" %}}
15
16 ## Count the weighted pages
17
18 Now that we have captured the `genres` `Taxonomy` object, let's count the number of weighted pages to which the `suspense` term has been assigned:
19
20 ```go-html-template
21 {{ $taxonomyObject.Count "suspense" }} → 3
22 ```