count siblings within placeholders
comments for the updateweight function