bpo-37165: Convert _count_elements to the argument clinic (GH-13848)

(cherry picked from commit e985804207473796a1326585b3e1b9e18c764345)

Co-authored-by: Raymond Hettinger <rhettinger@users.noreply.github.com>
3 files changed