Implements list.count. Fixes isue #55.