There is no ip accounting feature, you need to create a firewall filter that matches on the desired ip subnets and uses the count option.
Adding the interface specific term to the filter means that a separate counter will be maintained for every interface that you place the firewall filter on.