This could be moved into the functions_compatibility (deprecated) and calls to this be updated to call this new function directly ($session->obtain_guest_count).