def extract(self, post, extracted=None):
    soup = BeautifulSoup(post.rendered_body, 'html.parser')
    count = len(soup.find_all('img'))
    return count
def extract(self, post, extracted=None):
    soup = BeautifulSoup(post.rendered_body, 'html.parser')
    count = len(soup.find_all('img'))
    return count