---
title: utf8.codepoint_count
summary: null
url: >-
  https://www.fastly.com/documentation/reference/vcl/functions/unicode/utf8-codepoint-count
---

```
INTEGER utf8.codepoint_count(STRING s)
```

**Available in:** all subroutines

Returns the number of UTF-8 encoded Unicode code points in the string `s`. 
Returns zero if the string does not contain valid UTF-8.
