Selecting Specific List Field Value Based on Condition

Selecting Specific List Field Value Based on Condition

  
I am trying to use the IconBadge inside my Menu WebBlog to show the count of Projects and Tasks:


and i am using a query which returns struct of name and count but the problem is that i am not able to know how i can retrieve the Count Value based on the name value based on the menu.

I need something in the expression Like " TasksCount.List.Current.EntityDataCount.RowsCount Where TasksCount.List.Current.EntityDataCount.EntityName = 'Task' "


HI Guys, 

i really need to know how to do this