pow(2,$count)) { $count++; } echo "$count\n";