What factors affect lymph node yield in surgery for rectal cancer?

What factors affect lymph node yield in surgery for rectal cancer?