@param from  the container in which the attachment is currently stored
@param to  the container to which the attachment moved
@return the number of attachments which was moved to another container