I’ve never had to mess with the coding or anything for hit counters. To install a hit counter you should go to the site you’re getting the code from, customize it to your liking (if you can), copy the code, go into your description, and paste the code where you would like it. You shouldn’t have to edit the coding at all to add a counter, really.
If you’re still having problems please feel free to send another ask!