added counter for number of occupied buckets