Count Prefix and Suffix Pairs | Loopa