If a pitch is hit does it count as a strike or a ball against a pitcher's pitch count?

The pitch goes towards the pitcher's strike count.