Raspberry PI connect to RS485

how did you work out the quantity to be 3?