This should work, the output was just "arrays" of value, frequency that can be easily accessed in KM, and is easier than using a dictionary (always remembering that I boobed with the original number extraction, so use @drdrang's or @ccstone's corrected versions). That's assuming that the letter doesn't matter, ie you don't want to do different actions for 3z and 3y.
If it isn't working, post a sample macro that demonstrates the error.