class_docstr: Counts the number of cases at each x position
  
  {usage}
  
  Parameters
  ----------
  {common_parameters}
  width : float, default=None
      Bar width. If None, set to 90% of the resolution of the data.
  
  See Also
  --------
  plotnine.stats.stat_bin
class_docstr_tok: ["Counts","the","number","of","cases","at","each","x","position","{","usage","}","Parameters","--","--","--","--","--","{","common_parameters","}","width",":","float",",","default=None","Bar","width",".","If","None",",","set","to","90","%","of","the","resolution","of","the","data",".","See","Also","--","--","--","--","plotnine.stats.stat_bin"]
code: def setup_params(self, data):
      params = self.params.copy()
      if params["width"] is None:
          params["width"] = resolution(data["x"], False) * 0.9
  
      return params
  
file_path: plotnine/plotnine/stats/stat_count.py
imports: import numpy
  import pandas
  from .._utils import resolution
  from ..doctools import document
  from ..exceptions import PlotnineError
  from ..mapping.evaluation import after_stat
  from .stat import stat
label_desc: Use image node_id 1 for calling the stat_count obj's underlying member method code with example usage: obj.setup_params(data) and returns: params