Added ExportToSpreadsheet to output counts