MySQL 5.6 C API Developer Guide
unsigned long mysql_stmt_param_count(MYSQL_STMT *stmt)
Returns the number of parameter markers present in the prepared statement.
An unsigned long integer representing the number of parameters in a statement.
None.
See the Example in Section 11.10, “mysql_stmt_execute()”.