Lets say your 900 postcodes are in A2:A901, with a column label (POSTCODE) in A1.
Select A1:A901, then on the Data tab, Sort and Filter group choose Advanced Filter
Select 'Copy to another location', tick 'Unique records only', and enter B1 in the 'Copy to:' box
In C2 enter the formula: =COUNTIF(A$2:A$901,B2) and copy down to the end of the unique list.