You can use one of the bill of material template given with TopSolid :
IdxNbDesMatCom : this bill of material template have 5 columns which are the index, the number of parts, the designation, the matter and the comments. The part are identical if they have the same designation, the same matter and the same comment.
NbDesMatCom : this bill of material template have 4 columns which are the number of parts, the designation, the matter and the comments. The part are identical if they have the same designation, the same matter and the same comment.