How are the number of profiles calculated?