Number of keys in chain are stored in first block and the function