What exactly is the problem?
Are you getting compile-time errors, and if so what are they?

If I complie the code I get "'counter' : undeclared identifier" in linkedList::linkedList(), which is correct as there is no such variable linkedList::counter. Look carefully at the linkedlist class definition and you'll see the problem. If you can't, then tell me where you think linkedList::counter is defined (give the surrounding lines for context rather than line numbers).

By the way, there's a good reason to use indenting correctly. Fix that and all sorts of problems will become immediately apparent, including I think this one. Has the inaccurate indentation of linkedlist::node::counter fooled you?