Added count to file script