Chain length counting