added order count stuff