The usual method is Cheat Engine. Download it, then look up a tutorial for the specific version of the game you are playing, since the memory addresses shift between builds and an old tutorial will not work.
One caveat worth knowing: Cheat Engine is frequently flagged by antivirus software, and it only works offline — it will not help you in any online mode.