Add documentHeight metric

Resolves #344