adding counter