code: def count(column: str | None = None) -> Expr:
      """
      Either return the number of rows in the context, or return the number of non-null values in the column.
  
      If no arguments are passed, returns the number of rows in the context.
      Rows containing null values count towards the total.
      This is similar to `COUNT(*)` in SQL.
  
      Otherwise, this function is syntactic sugar for `col(column).count()`.
  
      Parameters
      ----------
      column
          Column name.
  
      Returns
      -------
      Expr
          Expression of data type :class:`UInt32`.
  
      See Also
      --------
      Expr.count
  
      Examples
      --------
      Return the number of rows in a context. Note that rows containing null values are
      counted towards the total.
  
      >>> df = pl.DataFrame({"a": [1, 2, None], "b": [3, None, None]})
      >>> df.select(pl.count())
      shape: (1, 1)
      ┌───────┐
      │ count │
      │ ---   │
      │ u32   │
      ╞═══════╡
      │ 3     │
      └───────┘
  
      Return the number of non-null values in a column.
  
      >>> df.select(pl.count("a"))
      shape: (1, 1)
      ┌─────┐
      │ a   │
      │ --- │
      │ u32 │
      ╞═════╡
      │ 2   │
      └─────┘
      """  # noqa: W505
      if column is None:
          return wrap_expr(plr.count())
  
      return F.col(column).count()
  
imports: from __future__ import annotations
  import contextlib
  from typing import TYPE_CHECKING, Any, Callable, Iterable, Sequence, overload
  import polars._reexport
  import polars.functions
  from polars.datatypes import DTYPE_TEMPORAL_UNITS, Date, Datetime, Int64
  from polars.utils._async import _AioDataFrameResult, _GeventDataFrameResult
  from polars.utils._parse_expr_input import parse_as_expression, parse_as_list_of_expressions
  from polars.utils._wrap import wrap_df, wrap_expr
  from polars.utils.deprecation import deprecate_renamed_function
label_desc: Use image node_id 2 for calling a global function with example usage: count(column) and returns: F, wrap_expr