心里有数 (xīn lǐ yǒu shù) means you understand how a situation stands: you have the relevant details in mind and can make a judgment. The “number” in 数 is not normally a literal count. The Ministry of Education’s Concised Dictionary glosses 心裡有數 as being clear in one’s mind and illustrates it with someone understanding why their money has been spent quickly. Its entry for 有數 also gives the figurative sense of understanding the situation and having some confidence.
In conversation, use it when someone has thought through the facts that matter—what has been paid, what remains, or what needs doing. It can sound reassuring because the speaker is saying they are not guessing blindly. But it is not itself a guarantee that a plan will succeed. That is an inference from the dictionary meanings: the phrase reports the speaker’s understanding or confidence, not an assured outcome. If the details matter, ask what they have counted or checked instead of treating 心里有数 as proof.
You may also hear 心里没数 for not knowing or not having a clear grasp of the situation. And 心里有数 does not require precise written arithmetic every time: it can describe a working understanding of what remains or what someone is responsible for. In a shared-expense conversation, for example, it can tell the listener that the speaker has accounted for the bills before deciding how much is safe to spend.