Add count_molecules_in_file() in FileHandler and its tests