<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;">Hi,<div><br></div><div>How can I count the number of facts of a partilcuar type inserted into the rules session?</div><div><br></div><div>lets say, I insert several instances of fact called Asset into the rules session.</div><div><br></div><div>I need to write a web guided decision table that outputs a specifc text value in an action column based on the number of assets in memory.</div><div><br></div><div><br></div><div><br></div><div>numberofAssets &nbsp; &nbsp; &nbsp;result</div><div><br></div><div>1 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;result1</div><div>2 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;result2</div><div>3 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
 &nbsp;result3</div><div><br></div><div>How can I create a condition column that counts the number of Assets in memory ?</div><div><br></div><div><br></div><div><br></div><div>question2:</div><div><br></div><div>If I want to write a drl &nbsp;that needs to count number of Assets in memory and print that value, can I use a collect from or is it only used with a Collection ?</div><div><br></div><div>As always ,</div><div><br></div><div>&nbsp;Thank You all for your fast responses and ideas.</div><div><br></div><div>Thanks,</div><div><br></div><div>Ram</div></td></tr></table>