Well, the D7000 is a 5-year-old body, which was replaced by the D7100, which is being replaced by the D7200.
Compare that to the two-year-old T5i which has a very similar sensor: http://www.dpreview.com/reviews/studio-compare?utm_campaign=internal-link&utm_source=mainmenu&utm_medium=text&ref=mainmenu#baseDir=%2Freviews_data&cameraDataSubdir=boxshot&indexFileName=boxshotindex.xml&presetsFileName=boxshotpresets.xml&showDescriptions=false&headerTitle=Studio%20scene&headerSubTitle=Standard%20studio%20scene%20comparison&masterCamera=canon_eos700d&masterSample=img_0778&slotsCount=4&slot0Camera=canon_eos700d&slot0Sample=img_0778&slot0DisableCameraSelection=true&slot0DisableSampleSelection=true&slot0LinkWithMaster=true&slot1Camera=nikon_d7000&slot1Sample=nikond7000_nrn_iso%203200&x=0.9635905125408942&y=-1.284621690494526
Spec wise, they're very close to each other with the D7000 edging out the T5i in a few categories such as top shutter speed and a faster shooting rate.
However better the sensor is on the T5i, you'll get a larger increase in image quality by using better glass. A great lens on either one of these bodies will produce a better image when compared with a poor lens (e.g. kit lens) on the other.
The number of pixels just tells you how large of print you can make before the image become pixelated. Much more important is the size of the sensor and the size of the pixels. The larger the pixel the more light (photons) it will capture. The more light it captures, the stronger the signal the pixel can create thus producing a cleaner signal, in lower light. And since the pixel can HOLD more of a charge, it won't get "filled up" in very bright situations which is seen as clipping of the highlights. D7000's pixels are about 20% bigger.
http://www.digicamdb.com/compare/canon_eos-rebel-t5i-vs-nikon_d7000/