histogram of lengths