GstElement.numpads

number of pads of the element, includes both source and sink pads.

struct GstElement
ushort numpads;