added output option to counts