That's way too complicated for the person just starting out and wanting to add a counter to his small website.
Nobody starting out with programming today will start with Rails. They might start with Javascript, but more than likely they'll start with PHP. It's accessible and SIMPLE.