using System.Collections.Generic;
using System.Threading.Tasks;
using Newtonsoft.Json.Linq;
public static void Main(string[] args)
var jsonOb = JArray.Parse(json);
var re = jsonOb.Select(x => x.ToObject<JObject>()).Where(x => x["attributes"]["event"] != null && (int)x["attributes"]["event"] == 0).Count();