LP Math Counting