How to count the number of occurences of a string from a Measure

If I have a measure that gives me all the link types and their ids like :

[Measures].[Linked Members to story]

Output :

Defect - Prj100
Defect - Prj271
Defect - Prj300
Task - Prj374

How can I get a count of only the defects from this list ?

Any ideas is greatly appreciated.

@Ukesh_Upendran

If you have imported Linked members as dimensions, you could create a new custom measure to count linked members by issue type.
See several examples (count of linked members by status) in our demo site reports:

https://eazybi.com/accounts/22010/cubes/Issues/reports/376217-story-and-bug-overview-by-projects
https://eazybi.com/accounts/22010/cubes/Issues/reports/376215-stories-by-epics-with-linked-bugs
https://eazybi.com/accounts/22010/cubes/Issues/reports/376216-stories-with-bugs-details

Martins / eazyBI