count and select key