[feature/session-storage] num_sessions functions should return number

Previously these functions returned an array containing
the result, but they are modified to return the actual result
like they were before the storage abstraction.

PHPBB3-9733