private static int GetAllCustomersAsJson(ISisoDatabase database) { return database.ReadOnce().Query<Customer>().ToEnumerableOfJson().Count(); }