Basic Principle of Piece Counting and the Most Common Problems