added console log for instance count