updated 'count' definition and comment