ConnectApi.​Chatter​Activity Class

Name Type Description Available Version
commentCount Integer Total number of comments in the org or community made by the user. 28.0
commentReceived​Count Integer Total number of comments in the org or community received by the user. 28.0
likeReceived​Count Integer Total number of likes and upvotes (in version 45.0 and later) on posts and comments in the org or community received by the user. 28.0
postCount Integer Total number of posts in the org or community made by the user. 28.0