Losing or gaining weight generally does not increase or decrease the number of cells. Instead, it changes the size of fat cells. When weight is gained, fat cells get bigger.
After dieting and weight loss, fat cells get smaller but the number of fat cells stays the same. Losing weight does not make fat cells go away.