Add method `length()` to `ChunkedInput`

ref #2741

1. Add method `length()` to `ChunkedInput` 
2. `ChunkedWriteHandler` can notify `ProgressivePromise` with total number
just remove the @return and merge it with the previous line. Also please use {@code -1} to highlight it.