update git on sync
count files in directory