Fix a bug in the function that collects the number of attachments included as part of the idea description