output GC counts to file