Save a file in count form

@Guilherme_Silva - Can you please check this… i guess this might what you are looking for…you have to tweak the code little bit.