I have an array x which can have following values:
x
0: {status: "completed", count: 2} 1: {status: "pending", count: 3}