added min counts flag