Without Grail, you could use auto tagging and tag every host with its osVersion and then on the hosts page filter by that tag and each value to get a count for each osVersion. The placeholder for the tag would be Host:OperatingSystemVersion. I don't like that method but it's generally easier than scripting through the API unless you already have a script that does something similar and can be repurposed.