Fixed tide count bug