A counting method, applied to a terminal device, the method comprising: maintaining a global counter, wherein the global counter is used to record how many times first indication information is received; and determining to increase a count value of the global counter based on received first indication information; wherein the first indication information indicates one of the following uplink transmission failure kinds: Listen Before Talk, LBT, failure, Scheduling Request, SR, transmission failure, preamble sequence transmission failure, or uplink data transmission failure, no matter of which kind of uplink transmission failure is indicated by the first indication information, the count value of the global counter is increased; wherein the method further comprises: when the global counter reaches a preset threshold, triggering, by a Radio Resource Control, RRC, layer, one of the following: RRC connection reestablishment; Secondary Cell Group, SCG, -Radio Link Failure, RLF, processing; or RRC reconfiguration; wherein the method further comprising: obtaining a configured global timer corresponding to the global counter; wherein after obtaining the configured global timer corresponding to the global counter, the method further comprises: when the first indication information is received, starting or restarting the global timer. maintaining a global counter, wherein the global counter is used to record how many times first indication information is received; and determining to increase a count value of the global counter based on received first indication information; wherein the first indication information indicates one of the following uplink transmission failure kinds: Listen Before Talk, LBT, failure, Scheduling Request, SR, transmission failure, preamble sequence transmission failure, or uplink data transmission failure, no matter of which kind of uplink transmission failure is indicated by the first indication information, the count value of the global counter is increased; wherein the method further comprises: when the global counter reaches a preset threshold, triggering, by a Radio Resource Control, RRC, layer, one of the following: RRC connection reestablishment; Secondary Cell Group, SCG, -Radio Link Failure, RLF, processing; or RRC reconfiguration; wherein the method further comprising: obtaining a configured global timer corresponding to the global counter; wherein after obtaining the configured global timer corresponding to the global counter, the method further comprises: when the first indication information is received, starting or restarting the global timer. RRC connection reestablishment; Secondary Cell Group, SCG, -Radio Link Failure, RLF, processing; or RRC reconfiguration; wherein the method further comprising: obtaining a configured global timer corresponding to the global counter; wherein after obtaining the configured global timer corresponding to the global counter, the method further comprises: when the first indication information is received, starting or restarting the global timer. obtaining a configured global timer corresponding to the global counter; wherein after obtaining the configured global timer corresponding to the global counter, the method further comprises: when the first indication information is received, starting or restarting the global timer. <EOS>