There's no way to get the count, but the Match Index attribute will help you find individual matches, ie Match Index=1 for the first, 2 for the second etc. If you make match Index a dynamic attribute then in your loop you will be able to feed a value from the diagram into Application Modeller when the Nth element cannot be found.