counting elements
Merge https://github.com/rjelavic/codility-python