title: What is the optimised way to get a count of keys in a riak bucket?
body: <p>I have a riak cluster set up with 3 servers. I can look at the bitcask to establish how much disk space this cluster is currently using but I'd also like to find out how many items are currently being stored in the cluster.</p>
  
  <p>The cluster is being used to store images, meaning that binary data is being stored against a key in a set of buckets. I have tried to use map reduce functions against the HTTP interface in order to return the number of items in the bucket however they have timed out.</p>
  
  <p>What is the most time optimised way to get the count of the number of keys from a specific bucket? </p>