Board: Introduce simple group_stone_count() utility