count element occurrence in a list

count element occurrence in a list