correct counting of number of script files in a specific revision