Allowing user to toggle between count and density