Calculate the length of a hashed identifier