I have a function defined below. This function downloads files one by one and moves it to the directory named templates. In the end, it should return the length of the directory