add session count method

Change-Id: Icc4d8513e38cec94dba684ff93896805932edae6