rule  exornot
  when
       Number( $iCount: intValue )  from accumulate ( Fact( x > 0 ), $c: count(1) )
  then
       System.out.println( "count = " + $c );
  end

There's no way $c can be used in RHS code (5.3.0, current).
Is this the intended behaviour? Where can it be used?

-W