In Wrath Classic it should still be GetCurrencyListSize()
Try /dump GetCurrencyListSize() and see if returns anything.
Or, all on one line:
/script local zebra = GetCurrencyListSize() print(zebra)
Being a local variable, in your /script /or macro it wont be available after the first line is executed and will return as nil since its not saved anywhere if call the print(zebra) on another line.
But if do the print function and variable setting on the same line, it should work.
I think this list is whats current on wrath/classic api wise:
https://wowpedia.fandom.com/wiki/Glo...ctions/Classic