Parser and save sp counts to file