I don't have the answer. Ketosis is an example of a weight loss diet where you don't have to count calories, since the body switches into fat burning / fat cell releasing mode by default. Veganism, which starves the body of fat required for normal operation (hormones, celular function), depletes fat stores to use for these functions, and also causes weight loss without having to count calories.
One of the most important things is probably to focus on eating whole foods over processed foods. I'd also consider that fat is more satiating than carbohydrates and protein. One overfeeding study wasn't successful because they couldn't get the fat-eating group to over eat, their bodies stopped them. I'd also consider the glycemic index of foods, since insulin is the signaler to the endothelium receptor to pull excess glucose from the blood into the cells to store as fat.