GetTagCount Example for C#
//LEADDICOM1 is a DICOM Dataset defined outside this method
private void TestGetTagCount ()
{
int lCount = 0;
lCount = LEADDICOM1.GetTagCount();
MessageBox.Show("There are " + System.Convert.ToString(lCount)
+ " Tag Items.");
}