richard,
Enter in column "B", next to your barcode column, if it is "A";
=COUNTIF($A$2:$A$25,A2)
Where $A$2:$A$25 is the range of your barcode column, it will count the number of instances of the barcode.
I forgot to add, it will give the total for each instance of the barcode.
jim