code: def _count_features(_gdf, sort=True):
      aggs = OrderedDict()
      aggs["dst"] = "count"
  
      c = _gdf.groupby(["dst"], as_index=False).agg(aggs)
  
      c = c.rename(columns={"count_dst": "count"}, copy=False)
  
      if sort:
          c = c.sort_values(by="count", ascending=False)
  
      return c
  
file_path: cugraph/python/cugraph/cugraph/experimental/structure/bicliques.py
imports: import cudf
  import numpy
  from collections import OrderedDict
label_desc: Use image node_id 3 for calling a global function with example usage: _count_features(_gdf, sort) and returns: c