Get GroupMemberCount and MessageCount

Hi Support,
Is there any api(javascript) can be used:

  • to get the total count of member in a group?
  • to get the total message in a group?

I saw you have CometChat.GroupMembersRequestBuilder(GUID) to retrieve the member list, but this requires to set the limit and to keep fetching the data in order to get the total count. Is there a better way of doing this?

var GUID = “GUID”;
var limit = 30;
var groupMemberRequest = new CometChat.GroupMembersRequestBuilder(GUID)

groupMembers => {
console.log(“Group Member list fetched successfully:”, groupMembers);
error => {
console.log(“Group Member list fetching failed with exception:”, error);