How do I make 2 types of items that give you points, but they both give different amounts?

In the Super Mario Bros. series, collecting a coin adds a number to a counter on the corner of the screen.
I want to make something like that, but with two types of coins.
Type A gives you 1 point on the counter.
Type B gives you 3 points on the counter.
Is it possible to make something like this? If it is possible, I would like to know how.
Thank you for your time.

make two different coins. Where one of them, it will add one to the counter while the other gives 3