How many casualties would be suffered on both sides of at the battle of Gettysburg?

The Union lost 3155 people, for a total of 23 055 losses/casualties whereas the confederates lost 4078 people, for a total loss/casulty count of 23 231 people