Do not run the counting in parallel.
Fix quotation issues when submitting to cluster.