SELECT COUNT(*) FROM Company_relationship WHERE effective_date = ? OR expiration_date = ?