fixing a bug in count