Add javascript counter for microposts.