Nimish,
Create a variable Count of accounts with formula
=Sum([Accounts] ForAll([Location]))
I used the below formula to display the counts
=If(IsNull([Accounts]);[CountofAccounts];[Accounts])
and then for break totals
=Sum(If(IsNull([Accounts]);[CountofAccounts];[Accounts]))