fixing api count

Forgot to add the api count to the total after each object has been
created.