New program to count available lengths in results