Counter added in Frontend. Also logging added.