Count number of groups on a board

Hi! Is there a quick and easy way to find the total number of groups on a board? I have seen how to count the number of group items, but can’t seem to find a way to summarize the group count without doing it manually.

Thanks!

If you want a super easy way, click on the board and then open developer console and type the following

Array.from(document.querySelectorAll(".group-name span")).length

and if you want names type the following

Array.from(document.querySelectorAll(".group-name span")).map(g => g.innerHTML)

Well, the above is just temporary and may work until selectors are proper. But long term solution would be call the API obviously. Its well documented in there.