Added possibility to open file by specifying counter from last find