Length of Particle System

Hello. How can i get length of particle system to attach any logic after its end?