I've added a `Range::length()` function in a3b55d83d6d9ef5a76caac75c11222e5fa26e1c4. Please use that function instead making your own.