How to get count of activities used inside workflow

Refer this post:
Activities count