I am busy making a simulator where you ,basically, hit trees to get wood which you sell for money. However I don't know how to check if the tree was hit by the tool so the player ,who is holding the tool, can receive points.

is it possible to give a player the same amount of points as the amount of damage that is taken?

E.g. a player hits a tree with a wooden axe ,which does 1 damage. Every hit the player receives 1 wood.

Can this be done?