fn count(value: &Value) -> i64