How many pictures can a 512MB memory card hold on a 10.1 Mega pixel camera?

Roughly 40 at full resolution. Memory is cheap. Splurge fifteen bucks and get a 2 gig.