How to count damage taken using the data editor

Very basic question I’m sure, but just cannot find the information to get this done.

For a unit I want to track how often and how much damage it takes from any source. I’m looking for a way to do this using the data editor (so no triggers).