private int amount(HFPage hf) { RID temp = hf.firstRecord(); int amount = 0; while (temp != null) { temp = hf.nextRecord(temp); amount++; } return amount; }