Created by: ryanslade
Instead, count the number of bytes and lines at the same time.
fix https://github.com/sourcegraph/sourcegraph/issues/7270