Word problem on Counting Principle