Hi Rick, like this blog post - very useful.

Is it possible that you have a typo in your code? I believe instead of 'Table' you want to read
'FreqOut' on this line:

use Table; read all var {N Count}; close Table;