Thanks to visit codestin.com Credit goes to dev.mysql.com
Syntax:
count = ccnx.num_fields()
Returns the number of columns in the active result set.