Added counter for number of quotes, and removed the empty line issue