Don't use built-in function for the length.