#!/usr/bin/python3
import pathlib
from bs4 import BeautifulSoup
file = pathlib.Path(__file__).parent / '../my_folder/my_file.html'
with open(file, "r") as f:
contents = f.read()
soup = BeautifulSoup(contents, 'lxml')
tag = soup.select_one('.summary-counter')
tag_text = str(tag.text).strip()
print(tag_text)