On 23 July 2011 00:22, pamerida <span dir="ltr">&lt;<a href="mailto:elpamm@hotmail.com">elpamm@hotmail.com</a>&gt;</span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>
<br>
with this rule Im able to get all the facts of the type segmentGroup8<br>
<br>
$cuscar : Cuscar(); $group7: SegmentGroup7() from $cuscar.segmentGroup7;<br>
$group8 : SegmentGroup8() from $group7.segmentGroup8;<br>
<br>
but I would like to count the number of facts, any idea how?? thanks so much<br>
for your help :)<br></blockquote><div><br>$cuscar : Cuscar()<br>Number( $count: intValue ) from accumulate (<br>    SegmentGroup7( $group8: segmentGroup8  ) from $cuscar.segmentGroup7,<br>    sum( $sgroup8.size() ) )<br>
<br>-W<br> </div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<font color="#888888"><br>
<br>
<br>
--<br>
View this message in context: <a href="http://drools.46999.n3.nabble.com/counting-Facts-tp3192513p3192513.html" target="_blank">http://drools.46999.n3.nabble.com/counting-Facts-tp3192513p3192513.html</a><br>
Sent from the Drools: User forum mailing list archive at Nabble.com.<br>
_______________________________________________<br>
rules-users mailing list<br>
<a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
</font></blockquote></div><br>