Added counts to returned JSON.