Added countKeys and countKeys between which are a lot more efficient, especially on large chunks