Adding data science solution

Use `total_size(cohort)` instead of accessing the hash directly.