Someone had it on his blog, which was posted here, so I've copied the code. I prefer your design than the hnlike.com.
I wrote this because the iframe gives me an error:
GET http://hnapiwrapper.herokuapp.com/static/button.js 404 (NOT FOUND)
Here is how I use it (I bypass the script that generates iframe; I put the iframe myself):
Thanks