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