Syntax

mqCountItems (Bag, Selector, ItemCount, CompCode, Reason)