add counter api
fix server time