* fix bug in Count fn