Made count in the object gateway of constant time
Code inspection