output counts to file