Fetch Total count Editable Grid

Certified Associate Developer

I have a editable grid,and I am using  totalcount:count(local!data) to show no. of rows in a gridlayout ,but for example I am removing any row from grid it is still showing same count value but I want it to be dynamic based on number of rows added and removed.

  Discussion posts and replies are publicly visible