added filetype counter