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