converting on food input

I am new to this and some foods are listed in grams instead of per piece, or by measurements I am used to. How do you all go about figuring out how much to assign to what you just ate when this happens?