Reply To: group for logged in user
You don’t say which hook your class uses.
Have you tried using get_group_ids( bp_loggedin_user_id() ) ?
See the function in bp-groups\bp-groups-classes.php and note the structure of the returned array.
If you’re hooking before BP is ready, you could always run some custom sql.
Use SELECT COUNT via get_var.