add the count of attachment in the table head