add get_role_count method