Fix VS2012 warning.
Fixed expensive count was not balanced.