count is ...0
val is ...1
count is ...1
val is ...2
count is ...2
val is ...4
count is ...3
val is ...8
count is ...4
val is ...16
count is ...5
val is ...32
count is ...6
val is ...64
count is ...7
val is ...128
count is ...8
val is ...256
count is ...9
val is ...512
count is ...10
val is ...1024