Changed from checking for len(bigrams) to line_count for when to save.

It seems like calling methods like len on the bigrams dict can be quite
time consuming so I switched to a simpler way of figuring out when to cut
processing and save state to file. Seems like that speeds up the run time