change the vector size automatically and add setter for minCount