count different kinds of files using script argument