What if your opening didn't work?

Every sound opening has been researched from the viewpoint of both white and black. There are recommended moves for both sides. The purpose in chess is not to win by coming up with a sound, winning opening against which your opponent fails to play correctly. The purpose is to learn these sound openings and battle it out in the mid- or endgame.
In other words, make sure that the openings you use are sound (even Wikipedia will tell you). If they are, then just keep playing them and focus on what to do after the openings.
Unless you are using very bad openings it is impossible just to "counter", which means "obtaining a strong advantage" any opening as long as you know it. Which means that you feel you get countered, then it must be because either you are playing bad openings, you are trying to set traps (which is NEVER a good idea! Don't play a bad move just because you expect your opponent to play an even worse move later on! That's just stupid, and to a greater instance it is even disrespectful to your opponent to throw bad moves to him and saying "haha I don't care I could even win against you with that"), and finally, and certainly the real reason: you might be playing inacuracies in the opening, trying to follow up a plan that is not correct given you position (trying to attack the king as black in a benoni?). The fact that you feel you get countered certainly should warn you that there are several things in your opening that you do'nt understand, that you certainly don't go after the good ideas, and even if your master don't know the opening well if he understands the position better than you his moves will simply prove better.
And finally, one advice from a purely strategic point of view: if your goal is to win at least one game, then you should play sharpest moves. Simply try to turn the positions you play against him more dangerous for each player. that way you will increase the part of "randomness" in the final result (by randomness I mean the possibility that you will not be the one who will make the last mistake, because the more mistakes are made into a game and the less likely the last one will be made byt the weaker player). The opposite is true: when you play a weaker opponent the simply opt for more calm position, where you can simply outplay him, by taking no risks if possible.

Always keep in mind that the opening is merely a means to reach a middlegame where you are at least equal. There is no silver bullet opening that is going to win chess games for you, let alone against a Master.
Figure out what's really ailing your game. Have a stronger player critique a few of your losses (as mentioned in the posts above). There are probably a ton of different flavors of mistakes you are making throughout the game ... eliminating each of them one by one is going to make you stronger.
I repeat => If you are not a really strong player playing equally strong players, You are NOT losing chess games because of the openings you play. (Unless your weapon of choice is the Bongcloud :) )
I don't know there is a chess master here in my place that knew all openings I've been using... So everytime we play i'm losing at the very beggining he just countered my moves and my openings... he even showed me some very odd openings too.... thats the thing i wanted to ask, What if your opponent already knew your moves and opening and easily countered it.... should you just stick to your plan to pursue that opening or make that opening or change other openings? i'm confused pls. help me! i really need to defeat my master!