[BZ-1022374] implement getFactCount in CommandBasedStatefulKnowledgeSession
(cherry picked from commit 523531ea7b08bb0179cff3705b9928f853edb82f)