updated for counts