I searched the forum and went through different stories. Since everyone's situation is different, I found I am still confused if the first two years of L permit base on a permanent contract counts for that.
Years with a L permit "with long term character" explicitly make previous years with a student permit count, just like a B permit would, so I would think they should count when there is no study years involved.