This calculator will calculate the amount of post and wire needed based on per lineal mile length. One way to get the measurement is to hop on your little bike (needs to have an odometer ) and ride along the fence as close as possible.
Post count is based on lineal feet plus one post.