This code will count the most common words found in each post title (after filtering for most common words) of a specific subreddit. The code makes use of the Python Reddit API Wrapper (https://praw.readthedocs.io/en/latest/).
Example usage against the 'unitedkingdom' subreddit:
python top-titles-reddit.py unitedkingdom
Example output from the above command:
('brexit', 197)
('uk', 141)
('eu', 96)
('theresa', 90)
('may', 88)
('has', 62)
('vote', 59)
('nhs', 54)
('government', 49)
('british', 48)
('says', 45)
('bbc', 44)
('jeremy', 39)
('corbyn', 39)
('referendum', 35)
('more', 34)
('boris', 34)
('was', 31)
('minister', 30)
('poll', 30)