added count matrix to data