The task: Count how many times the sequence '123' is present in aap.txt in all 8 directions. Example: 113 223 333 In the above text there are 3 times '123'.