Creating A Preloader Pie

How do I make a preloading “pie” or doughnut shaped one so I can stick a percent counter in the centre. That would be totally sweet. Any ideas how to go about it?