# Computability - Can a Turing Machine calculate the input's length?

I have looked for an answer for this question which seems trivial, but I didn't find any.

Can a Turing machine, given a word $$w$$, calculate the length of the word?