Adding missing -end, outputting count of possible matches array