Counting G-bundles over projective line