Computes only the length