add counting individual cells, fixed overwriting cells