recurs count number predecessor given messag pointer messag chain param uml messag uml messag count predecessor param ptr object contain return messag number messag chain rec count predecessor object uml messag msg ptr ptr pre local object messag maxmsg object activ uml messag ptr messag activ model facad activ uml messag object predecessor model facad predecessor uml messag model facad activ predecessor activ rec count predecessor predecessor pre pre maxmsg predecessor local ptr ptr messag maxmsg math max pre local 