Write out count