Somehow this script thinks that I know all Discoveries. Which is not true for the three Crimbo Duds meat-smithing items.
Also it produces tons of output (each known recipe) and ends with
"[Misc]
None! You have them all!
0/115
Grand Total: 0/1101
Done!"
I.e. it doesn't seem to count anything...