revise token counting to including function declarition