added arguments to count families and files separetely