Configuring cache size and count