Now that I did that I am getting the error ".text+0x18): undefined reference to 'main'
collect2: error: ldd returned 1 exit status" whenever I try to compile my WebCounter.cpp using the g++ command.
So you probably have a problem in "someHeader.h", then you put a } in WebCounter.h to get rid of a few errors, but it was corrected in the wrong place.
Also delete lines 3 and 4 in your code - they aren't necessary for that file.
Line 4 isn't necessary in any case - it can lead to naming conflicts. Just put std:: before each std thing - std::cout, std::cin, std::endl, std::string, std::vector etc. There are lots of things in the STL and it is documented in the reference section at the top left of this page.
Danny Toledo is right, if you have errors then post them in full, and the code they refer to.
EDIT:
This post is about the same topic as your other one. Could I ask you to please not do that? The trouble is that people make an effort to reply, and might make quite a long post, only to discover that the exact same things were talked about in the other post, which makes their effort seem to be a waste of time.
So, could you decide which post you want to continue with, then in your other post direct everyone to reply to the one you want to use.