summaryrefslogtreecommitdiff
path: root/bin/wired-count-h4-items.py
blob: df39d3c95ad4f6ba5588473b601542893781e151 (plain)
1
2
3
4
5
6
7
8
9
10
import sys

filename = '%s' %(sys.argv[1])
with open(filename, newline='') as f:
    content = f.readlines()
    count = 0
    for line in content:
        if line.startswith('####'):
            count = count + 1
    print(count)