Fetching details from the dictionary...
how many pieces
卵が何個残っているか確かめた。
I checked how many eggs were left.
一人何個まで購入できるか確認した。
I confirmed how many each person can buy.
ケーキの材料として卵が何個必要か計算した。
I calculated how many eggs are needed as ingredients for the cake.