fixed the "count" option