function cardinality<__Connector> input __Connector c; parameter output Integer numOccurances; end cardinality;