New law will count groups in medical care