An X-Ray Photon Counting Detector For X-Ray Tube Based Micro-Tomography And Phase Contrast Imaging Experiments