Dear Soumya,
You can achieve your requirement through multiple ways: either through Transformation by wring Routine and populating count.
- Through exception aggregation at Bex end and get count.
Better get at end without changing modelling.
Best wishes, Vijay