history: adding count to data object