added function to get the number of keys and bytes from a daemon