Food Journals and protein counts

When clients are picking foods, the protein content seems to be off. Example: Spaghetti say 7.4 grams of protein. Where is the data coming from?