A method of counting livestock for generating an inventory of livestock, said method comprising: directing a group of livestock from a confinement pen in which the livestock are contained through an alleyway to a remote location which comprises a transport container or another confinement pen in a direction of travel so that all of the group of livestock are transferred to the remote location; mounting at least one camera at the alleyway to obtain images of a portion of the alleyway including any livestock in the portion of the alleyway; passing the livestock through the portion of the alleyway; arranging the portion with a width such that the livestock can pass at least two abreast; arranging the portion so that the livestock are free to move in the direction of travel and can turn to move in an opposite direction against the direction of travel before all livestock of the group complete their movement between the confinement pen and the remote location; in a processor carrying out an analysis of the images to generate said inventory of livestock in the group which have all moved to the remote location; wherein when at least one of said livestock turns in the portion of the alleyway to move in the opposite direction temporarily before continuing to complete the travel through the alleyway to the remote location, the analysis in the processor generating the inventory takes into account said turn of the livestock; and wherein, when at least two of the livestock pass through the portion side by side, the analysis in the processor generating the inventory takes into account the livestock being side by side when passing through the portion; and forming the inventory into an accounting document. directing a group of livestock from a confinement pen in which the livestock are contained through an alleyway to a remote location which comprises a transport container or another confinement pen in a direction of travel so that all of the group of livestock are transferred to the remote location; mounting at least one camera at the alleyway to obtain images of a portion of the alleyway including any livestock in the portion of the alleyway; passing the livestock through the portion of the alleyway; arranging the portion with a width such that the livestock can pass at least two abreast; arranging the portion so that the livestock are free to move in the direction of travel and can turn to move in an opposite direction against the direction of travel before all livestock of the group complete their movement between the confinement pen and the remote location; in a processor carrying out an analysis of the images to generate said inventory of livestock in the group which have all moved to the remote location; wherein when at least one of said livestock turns in the portion of the alleyway to move in the opposite direction temporarily before continuing to complete the travel through the alleyway to the remote location, the analysis in the processor generating the inventory takes into account said turn of the livestock; and wherein, when at least two of the livestock pass through the portion side by side, the analysis in the processor generating the inventory takes into account the livestock being side by side when passing through the portion; and forming the inventory into an accounting document.