Wrong count being used