pub fn builtin_count(arr: ArrValue, x: Val) -> Result<usize>