Text this: Enhanced YOLOv8 for Robust Pig Detection and Counting in Complex Agricultural Environments