Count Prefix and Suffix Pairs II — CaffeCode