I have a couple of questions that are, IMHO, being downvoted with no good reason. Is there anything I can do to counter this?
I believe I'm getting downvoted for no good reason. What can I do about this?
Well actually you can learn from it.
If you're talking about Meta, don't forget that down-votes are different here.
If you're talking about Stack Overflow, you're still new around here have you looked at all the FAQ to make sure you're not doing anything the wrong way? The community is pretty picky and expect you to know how to ask your questions considering all the tools you have before posting.
If we take a quick look at one of your question that got downvoted.
What's the question there? You said "hey this doesn't work". Doesn't fit the Q&A standards at all.
Anyway, don't take downvotes too seriously. Everyone will collect some on the way. Especially when you post your first questions.
Your most recent question received a series of downvotes probably because of the "don't do this, no seriously, do not" vibe hanging around it. The other downvoted one probably got downvoted for lack of detail. There isn't a lot you can do other than try and heed the comments, or ignore the downvotes all together. Like @MarijnPieters commented, if someone is maliciously downvoting you, SO will detect this and revert those downvotes.