Revert "removing api_count"

This reverts commit 340bcf09f698eef9144ac766c3eb2a183c4f1631.