The function f(x) takes a string input and returns the length of the input string.

[CODE]:
```python
def f(x):
    return len(x)
```