count done in gsub