I have a city with 4 base grain, 2 apiaries, a pasture, and a farm:

It's added correctly to 8 in the tooltip, but the total is 7 and it is only using 7 in the calculation for total food.
Save game here:
http://dl.dropbox.com/u/8936258/BadGrainCount.EleSav