It works exactly the same way that Army regiments and corps count the length of service of the antecedent formations. Discount this service and most Army formations (with some notable exceptions (RE, Guards, etc)) are younger than most of the formations in the 'junior' Service.