After looking at Captain Branchflower's code, I realized that I needed to include count_next as a sensitivity in my next_state logic.  This fixed h_sync_gen.