Count B-Tree nodes and keys, calc memory occupancy