#include <ts/ts.h>
TSMimeHdrFieldValuesCount() returns the number of elements in a multi-valued field.
TSMimeHdrFieldValuesCount()