add count to file