Fixed bug in the way add incremented the count