How do I made a UI/ Counter for objects I pick up?

I want to make it, so I can pick up a certain amount of objects and it will store each on and count it in the UI.