included teory for couting elements
solution for level 3
simplified solution, index is not needed