Added feature to get the number of columns of a SELECT query
tidied up connection.py
merged in connection.py with count column support