It won't count. You have to apply for returning resident permit to be able to study in U.S. but still keep your Canadian GC valid.