new function to enumerate count-matrix given its corresponding target
vector.