adding count to the DAO