Finalize lb counting logic