So I was given this puzzle quite some time ago and just thought it would make a nice addition to this site:
Your task is to determine the method how the result is determined from the given number. A few example cases include:
177383 -> 2
267453 -> 2
111111 -> 0
636240 -> 4
367183 -> 3
247123 -> 1
369108 -> 5
To those, who hit a brick wall, here is a tip: This puzzle is easiest for young children and gets harder the older you get... Happy guessing ;)