Number of tasks replacement for len() in model