I think it's a bit overkill to `zip` the result, put it in a dictionary, and then get the only result. Since we know that `COUNT(*)` will always return exactly one row, I'd just do `count =result.first()[0]`.