in reply to help needed in modifying the code for counting possible combinations
A B B C C D D A B D [download]