Calculate count of rating star dan comment

Hello, friends.

I am currently trying to calculate the number of star ratings from 1 to 5 and count the number of users who have commented as follows:

Count Star 1 =
Count Star 2 =
Count Star 3 =
Count Star 4 =
Count Star 5 =
Count Comment =

Can anyone help me please create the blocks to calculate the number of each rating ?

Below are the blocks and sample app image I have successfully created, but I’m having trouble creating blocks for each rating and comment.

Thank you in advance.