The original joke deliberately says "two hard problems" and then lists three. The "off by one errors" being the 3rd problem is the punchline of the joke.