How many cups are in a gram?

Your question is like asking how many dump trucks are in a barrel of apples. If you don't appreciate that analogy, maybe this one is better: "How many pounds are in a mile?" Obviously, that question makes no sense whatsoever. A cup is a unit of volume, whereas a gram is a unit of mass or weight. If you wish to know how much a certain volume of a substance is, you must know two things: the substance and its density. A question that makes sense would be, "What is the weight, in grams, of one cup of olive oil?" That's a question that could be answered.