add docs for cards.c
add description of count runs