add counter in index.html