Add support to list.count

Adds support to list.count, based on list.__contains__