Is it possible to use group attributes in post?

Hi,

I would like to show in a public post a table like this

Group Members count
Group1 Group1Count
Group2 Group2Count
GroupN GroupNCount

Where Group1Count is the number of members of group Group1.

The number of users of every group should be got programmatically by using the Discourse API (or other mechanism) on post loading and all the users in the forum should see this info.

Is it possible?

Thanks in advance