How to count comment and post for each person in Post System?

Hey @wwwjljj, sorry the delay.
Please check if this query works for you.

{
 p1 as var(func: gt(count(~hasCreator),5), first:130) @filter(type(Person)) {
    Comments as _Comments: count(<~hasCreator>) @filter(type(Comment)) 
    Posts as _Posts: count(<~hasCreator>) @filter(type(Post)) 
  }
    count4EachPerson(func: uid(p1)){
      uid
      Comments: val(Comments)
      Posts: val(Posts)
  }
}

Cheers.