fixed stupid count bug