count the ip addresses in all files in a given directory