added option --count