Coin pickup counter with UE5 and C++

Thank you for the suggestion. But, it seems like it it with UE4. Are there any differences?