Python script to count number of saved links