Added documentation for session count check