Update test

add a function that can count the picture grabbed