Added total counter to script output. Sanity checks for if certain keys exist in movies