MySQL Connector/Python Developer Guide
Syntax:
count = ccnx.num_fields()
Returns the number of columns in the active result set.