A counting x-ray detector includes a converter element, a rewiring unit and an evaluation unit including pixel electrodes. In an embodiment, the converter element includes a first electrode on a surface facing away from the evaluation unit and a pixelated second electrode having a plurality of electrode elements on a surface facing toward the evaluation unit. The rewiring unit is on a surface of the converter element facing toward the evaluation unit. First contacts of electrically conductive connections between the electrode elements and the pixel electrodes are provided on a surface of the rewiring unit and include a first areal distribution and second such contacts are provided on a surface of the rewiring unit, including a relatively smaller second areal distribution. An areal extent of the evaluation unit is relatively smaller than an areal extent of the converter element.