Added count-of utility and with-active-session-by-id debug utility