[BZ-1022374] implement getFactCount in CommandBasedStatefulKnowledgeSession