How to count Albums

Yes in the linked thread, the second answer gives you an export script for it: