1--- 2title: countrunes 3description: Determines the number of runes in a string excluding any whitespace. 4date: 2017-02-01 5publishdate: 2017-02-01 6lastmod: 2017-02-01 7categories: [functions] 8menu: 9 docs: 10 parent: "functions" 11keywords: [counting, word count] 12signature: ["countrunes INPUT"] 13workson: [] 14hugoversion: 15relatedfuncs: [] 16deprecated: false 17--- 18 19In contrast with `countwords` function, which counts every word in a string, the `countrunes` function determines the number of runes in the content and excludes any whitespace. This has specific utility if you are dealing with CJK-like languages. 20 21``` 22{{ "Hello, 世界" | countrunes }} 23<!-- outputs a content length of 8 runes. --> 24``` 25 26[pagevars]: /variables/page/ 27