Y-axis scale in histogram

In this case:

p = plot(rand(1000), st=:hist)
yn = p[1][1][:y]
counts = maximum.(yn[1:6:length(yn)])