add counter for new api