• by code for selecting count of type is not as simple as this... it is join between 2-3 tables and all.. but will try something like u said