added count api