How to Count Elements in a List Using Python