Cuente el objeto basado en el estado y compre con JavaScript
const items = [[
{
"id": 1,
"status": "ORANGE",
"Shop":"ABC"
},
{
"id": 2,
"status": "GREEN",
"Shop":"ABC"
},
]
const itemsWithCount = items.map(item => ({
...item,
Count: items.filter(({ status, Shop }) => item.status === status && item.Shop === Shop).length
}));
SAMER SAEID