In this blog you will see how to use "Count Items in a Dictionary" action in SharePoint Designer 2013.
Count Items in a Dictionary action is used to count the variables that a Dictionary contains and then store that number in an Integer variable.
Workflow Design:
Result: