Add first attempt at documenting line counting