import pyvo svc = pyvo.dal.TAPService("http://dc.g-vo.org/tap") result = svc.run_sync("SELECT count(*) as ct FROM arihip.main") print(result[0]["ct"])