This is a double entendre.
The first meaning is that he’s an insomniac, and that he’s always trying to ‘count sheep’, a common remedy to try to fall asleep.

The second is that he’s fighting for the ‘sheep’, which is a term for people who are easily influenced, and naive. He’s saying that he’s fighting for these people to become educated, so they don’t become mindless supporters of the government.
